/*
 * Copyright (c) NEXTCHIP Inc. 2017-2020. All rights reserved.
 * Description: NEXTCHIP driver
 * Author: NEXTCHIP Inc.
 * Create: 2020/03/20
 * Modification: 2020/06/20, Hisilicon.
 */

#ifndef _AUDIO_H_
#define _AUDIO_H_

/*
 * define and enum
 */
#define AIG_DEF 0x08
#define AOG_DEF 0x08

/*
 * external api
 */
void audio_init(unsigned char recmaster, unsigned char pbmaster, unsigned char ch_num, unsigned char samplerate,
    unsigned char bits);
void nvp6168_audio_init(unsigned char recmaster, unsigned char pbmaster, unsigned char ch_num, unsigned char samplerate,
    unsigned char bits);
void audio_powerdown(unsigned char chip);
int nvp6158_audio_set_format(unsigned char type, nvp6158_audio_format *format);

/* Add for Raptor4 */
void audio_in_type_set(int type);
int audio_in_type_get(void);
void audio_sample_rate_set(int sample);
int audio_sample_rate_get(void);
void audio_re_initialize(int devnum);
void audio_set_aoc_format(decoder_dev_ch_info_s *decoder_info);

#endif /* End of _AUDIO_H_ */
